Skip to contentSkip to conversation

New: [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

Bug 91231 [email protected] 1 participant 8 messages Jul 5, 2015 – Jul 8, 2015 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=91231

Bug ID: 91231
Summary: [NV92] Psychonauts (native) segfaults on start when
DRI3 enabled
Product: xorg
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Keywords: bisected, regression
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 116944
--> https://bugs.freedesktop.org/attachment.cgi?id=116944&action=edit
trace generated by apitrace

The game runs natively on Linux. When Mesa was compiled with DRI3 support the game segfaults when starting and I get this in the terminal:
Psychonauts: nv50/nv50_miptree.c:132: nv50_mt_choose_storage_type: Assertion `ms == 0' failed.
The game starts properly if I disable DRI3 at runtime (LIBGL_DRI3_DISABLE=1)

The problem is present since

commit 241e7289f25a342a457952b9b0e539c2f0b81d99

Author: Maarten Lankhorst <maarten.lankhorst-GeWIH/[email protected]>
Date:   Wed Oct 22 11:04:16 2014 +0200

enable dri3 support without glamor

When replaying the trace with glretrace the message about the assertion is not present, but glretrace segfaults with signal 11.

Fedora 22 32-bit
xorg-x11-server-Xorg-1.17.2-1.fc22.i686
Kernel 4.0.6-300.fc22.i686+PAE
VGA compatible controller: NVIDIA Corporation G92 [GeForce GTS 250] (rev a2) (prog-if 00 [VGA controller])
libdrm-2.4.62-1-g676c806
xf86-video-nouveau-1.0.11-23-gdfd827c
Mesa 10.6-branchpoint-826-gff0a41b

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): bug-91231-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 91231] [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

https://bugs.freedesktop.org/show_bug.cgi?id=91231

--- Comment #1 from Béla Gyebrószki <[email protected]> --- Created attachment 116945
--> https://bugs.freedesktop.org/attachment.cgi?id=116945&action=edit
XOrg.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 91231] [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=91231

--- Comment #2 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- The assertion is regarding PIPE_BIND_SCANOUT + nr_samples != 0. I suspect this might be a dri st bug which only surfaces with the new mechanisms that dri3 enables.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 91231] [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=91231

--- Comment #3 from Béla Gyebrószki <[email protected]> --- Created attachment 116946
--> https://bugs.freedesktop.org/attachment.cgi?id=116946&action=edit
backtrace from the game and glretrace

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 91231] [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=91231

--- Comment #4 from Béla Gyebrószki <[email protected]> --- If you have a Steam account and Steam for Linux installed you can reproduce the segfault with these native Linux demos on Steam:
- 'Running with Rifles' demo (note: I had to remove libstdc++.so.6 and libxcb.so.1 from ./lib).
- Torchlight II demo (the game starts with default settings, you need to enable anti-aliasing in-game option and restart the game to reproduce this bug).

All those games crash on start with

Quoted 1 line

nv50/nv50_miptree.c:132: nv50_mt_choose_storage_type: Assertion `ms == 0' failed.

when DRI3 is enabled.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 91231] [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=91231

--- Comment #5 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Marek posted a patch for this at http://patchwork.freedesktop.org/patch/53843/

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 91231] [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=91231

Béla Gyebrószki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Béla Gyebrószki <[email protected]> --- (In reply to Ilia Mirkin from comment #5)

Quoted 2 lines

Marek posted a patch for this at
http://patchwork.freedesktop.org/patch/53843/

The patch works and fixes the problem in all the affected games that I know of. Thank you both for your help fixing this bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 91231] [NV92] Psychonauts (native) segfaults on start when DRI3 enabled

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=91231

Béla Gyebrószki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Béla Gyebrószki <[email protected]> --- Patch committed, marking the bug as fixed.
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6611f65047575054a38ce83ebfe0331e39e1774f

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau